import http from "../index";

export const getNoticeApi = async () => await http.get("notice/list");

export const getNoticeDetailApi = async (id) =>
  await http.get(`notice/get/${id}`);

export const getNoticeListApi = async (data) =>
  await http.post("notice/page/list", data);

export const deleteNoticeApi = async (data) =>
  await http.post("notice/delete", data);

export const addNoticeApi = async (data) =>
  await http.post("notice/insert", data);

export const updateNoticeApi = async (data) =>
  await http.post("notice/update", data);

export const downNoticeApi = async (data) =>
  await http.post("notice/down/remove", data);
